package com.lyd.sweet.mybatis.mapper;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.annotation.RegisterMapper;

/**
 * 类的用途
 *
 * @author 木木
 **/
@RegisterMapper
public interface UpdateMapper<T> {

    /**
     * 根据一个条件变更单个字段
     *
     * @param key
     * @param object
     * @param wKey
     * @param wObject
     * @return
     */
    @org.apache.ibatis.annotations.UpdateProvider(type = UpdateProvider.class, method = "dynamicSQL")
    int updateByOneField(@Param("field") String key, @Param("value") Object object, @Param("wField") String wKey, @Param("wValue") Object wObject);

}
